package com.production.CoursePlatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.Getter;

import java.time.LocalDateTime;

@Data
@TableName("reply")
public class Reply {
    @TableId(type = IdType.INPUT)
    @TableField("r_id")
    private int rID;
    @TableField("cmt_id")
    private int cmtID;
    @TableField("s_id")
    private int sID;
    @TableField("r_content")
    private String rContent;
    @TableField("r_time")
    private LocalDateTime rTime;
    @TableField("r_likes")
    private int rLikes;

    public int getrID() {
        return rID;
    }

    public int getCmtID() {
        return cmtID;
    }

    public int getsID() {
        return sID;
    }

    public String getrContent() {
        return rContent;
    }

    public LocalDateTime getrTime() {
        return rTime;
    }

    public int getrLikes() {
        return rLikes;
    }

    public void setrID(int rID) {
        this.rID = rID;
    }

    public void setCmtID(int cmtID) {
        this.cmtID = cmtID;
    }

    public void setsID(int sID) {
        this.sID = sID;
    }

    public void setrContent(String rContent) {
        this.rContent = rContent;
    }

    public void setrTime(LocalDateTime rTime) {
        this.rTime = rTime;
    }

    public void setrLikes(int rLikes) {
        this.rLikes = rLikes;
    }
}
